package com.molin.genericityclass;

public class Demo1 {
    public static void main(String[] args) {
        Box<String> box1=new Box<>();
        box1.setElement("给小丽的土味情话");
        String element1= box1.getElement();
        System.out.println(element1);

        Box<Integer> box2=new Box<>();
        box2.setElement(123);
        int ab=box2.getElement();
        System.out.println(ab);
    }
}
